<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>麦知网——学问有余，可为人师</title>

<!-- Bootstrap core CSS -->
<link href="../css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="../css/non-responsive.css" rel="stylesheet">
<link href="../css/font-awesome.min.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
<link href="../css/warning.css" rel="stylesheet">    
 
</head>
<body>
	{% include 'public/common/header.html' %}
<div class="container" style="margin-top:45px">
		<div class="row">
			<div class="col-xs-12">
				<div class="mes_title">
					<div class="pull-left mes_title1"><b>您收到的提醒</b></div>
					<div class="pull-right"><button type="button" class="btn btn-warning btn-sm" onclick="ignore_warning();">忽略全部</button></div>
					<div class="pull-right"><button type="button" class="btn btn-primary btn-sm" onclick="del_warning();">删除全部</button></div>
					<div class="clearfix"></div>
				</div>
				<div>
					<table class="table table-hover">
						<tbody>
<!-- 1 悬赏被揭榜 循环开始处 -->{% for w in warning %}
								{% ifequal w.4 1 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>揭榜您的悬赏</div>
										<div class="pull-left "><a href="javascript:void(0)" onclick="read(1,{{w.8}},{{w.2}},0);">{{w.3}}</a></div>
<!-- 如果未读 开始处 -->					{% ifequal w.5 0 %}
										<div class="pull-left" class="if_read_div"><span class="label label-warning">未读</span></div>
<!-- 如果未读 结束处 -->					{% endifequal %}
										
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)"  type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
<!-- 1 悬赏被揭榜  循环结束处 -->

<!-- 2 课程被购买 循环开始处 -->
								{% ifequal w.4 2 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>购买您的课程</div>
										<div class="pull-left "><a href="javascript:void(0)" onclick="read(2,{{w.8}},{{w.2}},0);">{{w.3}}</a></div>
<!-- 如果未读 开始处 -->					{% ifequal w.5 0 %}
										<div class="pull-left" class="if_read_div"><span class="label label-warning">未读</span></div>
<!-- 如果未读 结束处 -->					{% endifequal %}

										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)"  type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
<!-- 2 课程被购买  循环结束处 -->{% endifequal %}
								

<!-- 3 4 5 6 各种被回复  循环开始处 -->
								{% ifequal w.4 3 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="news_page({{w.2}},{{w.8}});">{{w.3}}</a>
										</div>
										<div class="pull-left">
											中回复了您
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}			
											<span class="label label-warning">未读</span>
<!-- 如果未读 结束处 -->							{% endifequal %}
										</div>								
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
							{% ifequal w.4 4 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="reOfTopic_page({{w.5}},{{w.2}},{{w.8}});">{{w.3}}</a>
										</div>
										<div class="pull-left">
											中回复了您
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}			
											<span class="label label-warning">未读</span>
<!-- 如果未读 结束处 -->							{% endifequal %}
										</div>								
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
							{% ifequal w.4 5 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="news_page({{w.2}},{{w.8}})">{{w.3}}</a>
										</div>
										<div class="pull-left">
											中回复了您
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}			
											<span class="label label-warning">未读</span>
<!-- 如果未读 结束处 -->							{% endifequal %}
										</div>								
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
							{% ifequal w.4 6 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="reOfTopic_page({{w.5}},{{w.2}},{{w.8}});">{{w.3}}</a>
										</div>
										<div class="pull-left">
											中回复了您
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}			
											<span class="label label-warning">未读</span>
<!-- 如果未读 结束处 -->							{% endifequal %}
										</div>								
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 3 4 5 6 各种被回复   循环结束处 -->

<!-- 7 悬赏所需课程做完了  循环开始处 -->
								{% ifequal w.4 7 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>完成您在</div>
										<div class="pull-left">
											<a href="{% url 'rewards:thereward' w.2 %}">{{w.3}}</a>
										</div>
										<div class="pull-left">
											中悬赏的课程，请到<a href="javascript:void(0)" onclick="read(7,{{w.8}},{{w.2}},0);">您购买的课程</a>中查看
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}			
											<span class="label label-warning">未读</span>
<!-- 如果未读 结束处 -->							{% endifequal %}										
										</div>

										<div class="pull-right time">2014-5-2 12:45:55</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 7 悬赏所需课程做完了   循环结束处 -->

<!-- 8 揭榜者被选定  循环开始处 -->
								{% ifequal w.4 8 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>选择您成为</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="read(8,{{w.8}},{{w.2}},0);">{{w.3}}</a>
										</div>
										<div class="pull-left">
											的揭榜者
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}			
											<span class="label label-warning">未读</span>
<!-- 如果未读 结束处 -->							{% endifequal %}									
										</div>

										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 8 揭榜者被选定   循环结束处 -->

<!-- 9 新鲜事点赞  循环开始处 -->
								{% ifequal w.4 9 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>等人在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="news_page({{w.2}},{{w.8}})">{{w.3}}</a>中赞了您
										</div>
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}	
										<div class="pull-left">	
											<span class="label label-warning">未读</span>
										</div>
<!-- 如果未读 结束处 -->							{% endifequal %}
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 9 新鲜事点赞   循环结束处 -->

<!-- 10 课程被评论  循环开始处 -->
								{% ifequal w.4 10 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="read(10,{{w.8}},{{w.2}},{{w.5}});">{{w.3}}</a>中评论了您
										</div>
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}	
										<div class="pull-left">	
											<span class="label label-warning">未读</span>
										</div>
<!-- 如果未读 结束处 -->							{% endifequal %}
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 10 课程被评论   循环结束处 -->

<!-- 11 悬赏被评论  循环开始处 -->
								{% ifequal w.4 11 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="reward_page({{w.5}},{{w.2}},{{w.8}})">{{w.3}}</a>中评论了您
										</div>
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}	
										<div class="pull-left">	
											<span class="label label-warning">未读</span>
										</div>
<!-- 如果未读 结束处 -->							{% endifequal %}
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 11 悬赏被评论   循环结束处 -->

<!-- 12 话题的回复被点赞  循环开始处 -->
								{% ifequal w.4 12 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>等人在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="reOfTopic_page({{w.5}},{{w.2}},{{w.8}});">{{w.3}}</a>中赞了您
										</div>
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}	
										<div class="pull-left">	
											<span class="label label-warning">未读</span>
										</div>
<!-- 如果未读 结束处 -->							{% endifequal %}
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								
<!-- 12 话题的回复被点赞   循环结束处 -->

<!-- 13 新鲜事的回复被点赞  循环开始处 -->
								{% ifequal w.4 13 %}
							<tr onMouseOver="show_del({{w.8}})" onMouseOut="hide_del({{w.8}})" id="aWarning{{w.8}}">
								<td style="padding:10px 20px 10px 20px;">
									<div>
										<div class="pull-left"><a href="{% url 'users:home' w.0 %}">{{w.1}}</a>等人在</div>
										<div class="pull-left">
											<a href="javascript:void(0)" onclick="news_page({{w.2}},{{w.8}})">{{w.3}}</a>中赞了您的回复
										</div>
<!-- 如果未读 开始处 -->							{% ifequal w.5 0 %}	
										<div class="pull-left">	
											<span class="label label-warning">未读</span>
										</div>
<!-- 如果未读 结束处 -->							{% endifequal %}
										<div class="pull-right time">{{w.6|date:"Y-m-d H:i:s"}}</div>
										<div id="del{{w.8}}" class="pull-right del">
											<a href="javascript:void(0)" type="button" class="btn btn-info btn-xs" onclick="del_a_warning({{w.8}});">删除</a>
										</div>
										<div class="clearfix"></div>
									</div>
								</td>
							</tr>
							{% endifequal %}
								{% endfor %}
<!-- 13 新鲜事的回复被点赞   循环结束处 -->


						</tbody>
					</table>
				</div>
			</div>
		</div>
</div>
	
	
	
	
	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
	<script src="../js/logout.js"></script>
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		var xmlHttp; 

		function createXMLRequest(){
			if(window.ActiveXObject){
				xmlHttp=new ActiveXObject("Microsoft.XMLHttp");
			} else if(window.XMLHttpRequest){
				xmlHttp=new XMLHttpRequest();
			}
		}

//删除所有提醒
		function del_warning(){
			if (confirm("您确认要删除所有信息吗？")){
			    createXMLRequest();                       
				
				var url="/users/del_warning/";
				xmlHttp.open("GET",url);
				xmlHttp.onreadystatechange=function(){
					if(xmlHttp.readyState==4 && xmlHttp.status==200){
						location.reload();
					}		
				};
				xmlHttp.send(); 
			}
		}

//忽略所有提醒
		function ignore_warning(){
			if (confirm("您确认要忽略所有信息吗？")){
			    createXMLRequest();                       
				
				var url="/users/ignore_warning/";
				xmlHttp.open("GET",url);
				xmlHttp.onreadystatechange=function(){
					if(xmlHttp.readyState==4 && xmlHttp.status==200){
						location.reload();
					}		
				};
				xmlHttp.send(); 
			}
		}

//点击查看提醒--新鲜事被回复
		function news_page(news_id,warning_id){
		createXMLRequest();                       
		var url="/users/warning_news_page/?news_id="+news_id+"&warning_id="+warning_id;
		xmlHttp.open("GET",url);
		xmlHttp.onreadystatechange=function(e){
			if(xmlHttp.readyState==4 && xmlHttp.status==200){
					page=xmlHttp.responseText;

					if(page){
						//$("#if_read_div").html('');
			    		window.location.href='/users/?page='+page+'#news_'+news_id;

					}else{
						e.preventDefault();
			    		$.scojs_message('服务器出错啦～ ：）', $.scojs_message.TYPE_ERROR);
					} 
				} /*else {
					e.preventDefault();
			    	$.scojs_message('服务器有小怪兽在捣乱～我们正在尽力捕捉～ ：）', $.scojs_message.TYPE_ERROR);
				}*/
			};
			xmlHttp.send(); 
	}

//点击查看提醒--话题被回复
	function reOfTopic_page(re_id,topic_id,warning_id){
		createXMLRequest();                       
		var url="/groups/warning_reOfTopic_page/?re_id="+re_id+"&topic_id="+topic_id+"&warning_id="+warning_id;
		xmlHttp.open("GET",url);
		xmlHttp.onreadystatechange=function(e){
			if(xmlHttp.readyState==4 && xmlHttp.status==200){
					page=xmlHttp.responseText;
					if(page){
						//$("#if_read_div").html('');
			    		window.location.href='/groups/topic/'+topic_id+'?page='+page+'#dingwei_'+re_id;
			    		
					}else{
						e.preventDefault();
			    		$.scojs_message('服务器出错啦～ ：）', $.scojs_message.TYPE_ERROR);
					} 
				} /*else {
					e.preventDefault();
			    	$.scojs_message('服务器有小怪兽在捣乱～我们正在尽力捕捉～ ：）', $.scojs_message.TYPE_ERROR);
				}*/
			};
			xmlHttp.send(); 
	}

//点击查看提醒--悬赏被回复
	function reward_page(re_id,reward_id,warning_id){
		createXMLRequest();                       
		var url="/rewards/warning_reOfReward_page/?re_id="+re_id+"&reward_id="+reward_id+"&warning_id="+warning_id;
		xmlHttp.open("GET",url);
		xmlHttp.onreadystatechange=function(e){
			if(xmlHttp.readyState==4 && xmlHttp.status==200){
					page=xmlHttp.responseText;
					if(page){
						//$("#if_read_div").html('');
			    		window.location.href='/rewards/the/'+reward_id+'?page='+page+'#dingwei_'+re_id;
			    		
					}else{
						e.preventDefault();
			    		$.scojs_message('服务器出错啦～ ：）', $.scojs_message.TYPE_ERROR);
					} 
				} /*else {
					e.preventDefault();
			    	$.scojs_message('服务器有小怪兽在捣乱～我们正在尽力捕捉～ ：）', $.scojs_message.TYPE_ERROR);
				}*/
			};
			xmlHttp.send(); 
	}

//点击查看提醒--悬赏被揭榜 & 课程被购买 & 悬赏所需的课程做完了 & 揭榜者被选定 & 课程被评论
	function read(status,warning_id,uncertain_id,dingwei_id){
		createXMLRequest(); 
		var url="/users/header_warning/?status="+status+"&warning_id="+warning_id+"&uncertain_id="+uncertain_id;
		xmlHttp.open("GET",url);
		xmlHttp.onreadystatechange=function(e){
			if(xmlHttp.readyState==4 && xmlHttp.status==200){
					re=xmlHttp.responseText;//alert(re);
					if(re){
						//$("#if_read_div").html('');
						if(status==1){
							window.location.href='/users/manage/reward/';
						}if(status==2){
							window.location.href='/courses/types/tiny/course/lession/'+uncertain_id;
						}if(status==7){
							window.location.href='/users/manage/course/';
						}if(status==8){
							window.location.href='/rewards/the/'+uncertain_id;
						}if(status==10){
							window.location.href='/courses/types/tiny/course/lession/'+uncertain_id+'#course_'+dingwei_id;
						}

			    		
			    		
					}else{
						e.preventDefault();
			    		$.scojs_message('服务器出错啦～ ：）', $.scojs_message.TYPE_ERROR);
					} 
				} /*else {
					e.preventDefault();
			    	$.scojs_message('服务器有小怪兽在捣乱～我们正在尽力捕捉～ ：）', $.scojs_message.TYPE_ERROR);
				}*/
			};
			xmlHttp.send(); 
	}

//删除一条提醒
		function del_a_warning(warning_id){
		    createXMLRequest();      
			var url="/users/delawarning/?warning_id="+warning_id;
			xmlHttp.open("GET",url);
			xmlHttp.onreadystatechange=function(){
				if(xmlHttp.readyState==4 && xmlHttp.status==200){
					if(xmlHttp.responseText=='1') {
						$("#aWarning"+warning_id).css("display","none");
					}
				}		
			};
			xmlHttp.send(); 
		}

//鼠标移动到哪条私信上，就出现 删除 链接
		function show_del(warning_id) {
			$("#del"+warning_id).css('visibility','visible');
		}
//鼠标移开,删除 链接消失
		function hide_del(warning_id) {
			$("#del"+warning_id).css('visibility','hidden');
		}
	</script>

</body>
</html>